package Procesos;

import Vistas.Acceso;

public class CargarDatos {

	private Object[][] aux;
	protected String[] cursos = {"Desarrollo de Aplicaciones Multiplataforma","Administracion de Sistemas Informaticos en Red","Sistemas Microinformaticos y Redes"};
	protected Object[][] alumnos = {{"Christian", "Martos Abel", false, false},
									{"Oscar", "Barbancho Ramirez", false, false},
									{"Raul", "Hernandez Ramirez", false, false},
									{"Juan Vicente", "Bolufer Moncho", false, false},
									{"David", "Campos Cerezo", false, false}};
	protected Object[][] alumnos1 = {{"Sergio", "Roman", false, false},
									{"Ricardo", "Pallas", false, false},
									{"Rastreator", "Tamagochi", false, false},
									{"Chaquetilla", "Chabeli", false, false}};
	protected Object[][] alumnos2 = {{"Juan David", "La Torre", false, false},
									{"Virgilio", "Tello", false, false},
									{"Arturo", "Martinez Arribas", false, false},
									{"Jose", "Perez Perez", false, false}};
	protected String[] cabecera = {"Nombre","Apellidos","Falta","Retraso"};
	protected String[] cabecera2 = {"Nombre","Apellido","Nota"};
	protected String[] asignatura = {"AD","DI","SGE","EIE","PMDM","PSP","INGLES"};
    protected String[] asignatura2 = {"PI","CCNA","INGLES","EIE"};
	protected String[] asignatura3 = {"MME","AO","RL","SOM","INGLES"};
	private Object[] aux2;
	
	public Object[][] cargarDatosAlumnos(String curso){
		if(curso.equals(cursos[0])){
			return alumnos;
			}
		if(curso.equals(cursos[1])){
			aux = alumnos1;
			return aux;
		}
		if(curso.equals(cursos[2])){
			aux = alumnos2;
			return aux;
		}
		return alumnos;
	}
	public String[] getcargarDatosCursos(){
		for(int i = 0; i < cursos.length; i++){
			return cursos;
		}
		return cursos;
	}
	public String[] getCabecera(){
		for(int i = 0; i < cabecera.length;i++){
			return cabecera;
		}
		return cabecera;
	}
	
	public String [] getCabecera2(){
		for(int i = 0; i < cabecera2.length;i++){
			return cabecera2;
		}
		return cabecera2;
	}
	
	public Object[] getAsignaturas(String curso){
		if(curso.equals(cursos[0])){
			return asignatura;
			}
		if(curso.equals(cursos[1])){
			aux2 = asignatura2;
			return aux2;
		}
		if(curso.equals(cursos[2])){
			aux2 = asignatura3;
			return aux2;
		}
		return alumnos;
	}
}
